package edu.rpi.tw.pml.browsing.client;

import java.util.ArrayList;
import com.gwtext.client.widgets.Panel;

/*
 * A UI widget to represent a set of FacetWidget's.
 */
public class FacetSetWidget {

	private Panel panel = new Panel();

	/*
	 * Default constructor.
	 */
	public FacetSetWidget() {

	}

	/*
	 * Constructor with an array of facet names.
	 */
	public FacetSetWidget(String[] facets) {
		for (int i = 0; i < facets.length; i++) {
			FacetWidget facet = new FacetWidget(facets[i]);
			panel.add(facet.getPanel());
		}
		panel.setAutoScroll(true);
	}

	public Panel getPanel() {
		return panel;
	}
}
